package com.gopay.common.domain.dps;
// default package

import java.sql.Blob;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "WA_MSG_SEND")
public  class WaMsgSend implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "WA_MSG_SEND_SEQ")
    @SequenceGenerator(name = "WA_MSG_SEND_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "WA_MSG_SEND_SEQ")
	private Long id;
	
	@Column(name = "TICKER")
	private String ticker;
	@Column(name = "TITLE")
	private String title;
	@Column(name = "TEXT")
	private String text;
	@Column(name = "MESSAGE_TYPE")
	private String messageType;
	
	@Column(name = "SEND_TYPE")
	private String sendType;
	
	@Column(name = "SEND_TIME")
	@Temporal(TemporalType.TIMESTAMP)
	private Date sendTime;
	
	@Column(name = "EXTRA")
	private Blob extra;
	
	@Column(name = "SEND_STATUS")
	private String sendStatus;
	
	@Column(name = "SEND_LOCK")
	private String sendLock;
	
	@Column(name = "CREATE_TIME")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	
	@Column(name = "FILE_ID")
	private String fileId;
	
	@Column(name = "ICON")
	private String icon;
	
	@Column(name = "PRODUCTION_MODE")
	private String productionMode;
	
	@Column(name = "LARGE_ICON")
	private String largeIcon;
	@Column(name = "IMG")
	private String img;
	
	@Column(name = "SOUND")
	private String sound;
	@Column(name = "BUILDER_ID")
	private String builderId;
	
	@Column(name = "PLAY_VIBRATE")
	private String playVibrate;
	
	@Column(name = "PLAY_LIGHTS")
	private String playLights;
	
	@Column(name = "PLAY_SOUND")
	private String playSound;
	
	@Column(name = "AFTER_OPEN")
	private String afterOpen;
	
	@Column(name = "URL")
	private String url;
	
	@Column(name = "ACTIVITY") 
	private String activity;

	@Column(name = "CUSTOM")
	private String custom;
	
	@Column(name = "EXPIRE_DATE")
	private Long expireDate;
	
	@Column(name = "MAX_SEND_NUM")
	private String maxSendNum;
	
	@Column(name = "DESCRIPTION")
	private String description;
	
	@Column(name = "THIRDPARTY_ID")
	private String thirdpartyId;
	
	@Column(name = "USER_ID")
	private String userId;

	@Column(name = "SEND_NUM")
	private Long sendNum;
	
	@Column(name = "SEND_PRIORITY")
	private String sendPriority;
	
	@Column(name = "REMARK")
	private String remark;
	//@Version
	@Column(name = "VERSION")
	private long version;
	
	@Column(name = "UPDATE_TIME")
	@Temporal(TemporalType.TIMESTAMP)
	private Date updateTime;
	
	@Column(name = "IS_READED")
	private long isReaded;
	
	@Column(name = "IS_DELETED")
	private long isDeleted;

	public long getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(long isDeleted) {
		this.isDeleted = isDeleted;
	}

	public long getIsReaded() {
		return isReaded;
	}

	public void setIsReaded(long isReaded) {
		this.isReaded = isReaded;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTicker() {
		return ticker;
	}

	public void setTicker(String ticker) {
		this.ticker = ticker;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getMessageType() {
		return messageType;
	}

	public void setMessageType(String messageType) {
		this.messageType = messageType;
	}

	public String getSendType() {
		return sendType;
	}

	public void setSendType(String sendType) {
		this.sendType = sendType;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Blob getExtra() {
		return extra;
	}

	public void setExtra(Blob extra) {
		this.extra = extra;
	}

	public String getSendStatus() {
		return sendStatus;
	}

	public void setSendStatus(String sendStatus) {
		this.sendStatus = sendStatus;
	}

	public String getSendLock() {
		return sendLock;
	}

	public void setSendLock(String sendLock) {
		this.sendLock = sendLock;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getFileId() {
		return fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getProductionMode() {
		return productionMode;
	}

	public void setProductionMode(String productionMode) {
		this.productionMode = productionMode;
	}

	public String getLargeIcon() {
		return largeIcon;
	}

	public void setLargeIcon(String largeIcon) {
		this.largeIcon = largeIcon;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getSound() {
		return sound;
	}

	public void setSound(String sound) {
		this.sound = sound;
	}

	public String getBuilderId() {
		return builderId;
	}

	public void setBuilderId(String builderId) {
		this.builderId = builderId;
	}

	public String getPlayVibrate() {
		return playVibrate;
	}

	public void setPlayVibrate(String playVibrate) {
		this.playVibrate = playVibrate;
	}

	public String getPlayLights() {
		return playLights;
	}

	public void setPlayLights(String playLights) {
		this.playLights = playLights;
	}

	public String getPlaySound() {
		return playSound;
	}

	public void setPlaySound(String playSound) {
		this.playSound = playSound;
	}

	public String getAfterOpen() {
		return afterOpen;
	}

	public void setAfterOpen(String afterOpen) {
		this.afterOpen = afterOpen;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getActivity() {
		return activity;
	}

	public void setActivity(String activity) {
		this.activity = activity;
	}

	public String getCustom() {
		return custom;
	}

	public void setCustom(String custom) {
		this.custom = custom;
	}

	public Long getExpireDate() {
		return expireDate;
	}

	public void setExpireDate(Long expireDate) {
		this.expireDate = expireDate;
	}

	public String getMaxSendNum() {
		return maxSendNum;
	}

	public void setMaxSendNum(String maxSendNum) {
		this.maxSendNum = maxSendNum;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getThirdpartyId() {
		return thirdpartyId;
	}

	public void setThirdpartyId(String thirdpartyId) {
		this.thirdpartyId = thirdpartyId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Long getSendNum() {
		return sendNum;
	}

	public void setSendNum(Long sendNum) {
		this.sendNum = sendNum;
	}

	public String getSendPriority() {
		return sendPriority;
	}

	public void setSendPriority(String sendPriority) {
		this.sendPriority = sendPriority;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public long getVersion() {
		return version;
	}

	public void setVersion(long version) {
		this.version = version;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public WaMsgSend(Long id, String ticker, String title, String text, String messageType, String sendType,
			Date sendTime, Blob extra, String sendStatus, String sendLock, Date createTime, String fileId,
			String icon, String productionMode, String largeIcon, String img, String sound, String builderId,
			String playVibrate, String playLights, String playSound, String afterOpen, String url, String activity,
			String custom, Long expireDate, String maxSendNum, String description, String thirdpartyId, String userId,
			Long sendNum, String sendPriority, String remark, long version, Date updateTime,long isReaded,long isDeleted) {
		super();
		this.id = id;
		this.ticker = ticker;
		this.title = title;
		this.text = text;
		this.messageType = messageType;
		this.sendType = sendType;
		this.sendTime = sendTime;
		this.extra = extra;
		this.sendStatus = sendStatus;
		this.sendLock = sendLock;
		this.createTime = createTime;
		this.fileId = fileId;
		this.icon = icon;
		this.productionMode = productionMode;
		this.largeIcon = largeIcon;
		this.img = img;
		this.sound = sound;
		this.builderId = builderId;
		this.playVibrate = playVibrate;
		this.playLights = playLights;
		this.playSound = playSound;
		this.afterOpen = afterOpen;
		this.url = url;
		this.activity = activity;
		this.custom = custom;
		this.expireDate = expireDate;
		this.maxSendNum = maxSendNum;
		this.description = description;
		this.thirdpartyId = thirdpartyId;
		this.userId = userId;
		this.sendNum = sendNum;
		this.sendPriority = sendPriority;
		this.remark = remark;
		this.version = version;
		this.updateTime = updateTime;
		this.isReaded = isReaded;
		this.isDeleted = isDeleted;
	}

	public WaMsgSend() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return "WaMsgSend [id=" + id + ", ticker=" + ticker + ", title=" + title + ", text=" + text + ", messageType="
				+ messageType + ", sendType=" + sendType + ", sendTime=" + sendTime + ", extra=" + extra
				+ ", sendStatus=" + sendStatus + ", sendLock=" + sendLock + ", createTime=" + createTime + ", fileId="
				+ fileId + ", icon=" + icon + ", productionMode=" + productionMode + ", largeIcon=" + largeIcon
				+ ", img=" + img + ", sound=" + sound + ", builderId=" + builderId + ", playVibrate=" + playVibrate
				+ ", playLights=" + playLights + ", playSound=" + playSound + ", afterOpen=" + afterOpen + ", url="
				+ url + ", activity=" + activity + ", custom=" + custom + ", expireDate=" + expireDate + ", maxSendNum="
				+ maxSendNum + ", description=" + description + ", thirdpartyId=" + thirdpartyId + ", userId=" + userId
				+ ", sendNum=" + sendNum + ", sendPriority=" + sendPriority + ", remark=" + remark + ", version="
				+ version + ", updateTime=" + updateTime + ", isReaded=" + isReaded + ", isDeleted=" + isDeleted + "]";
	}

	

	
	
	
	

	}